<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>实施阶段----隐蔽验收</title>
</head>
<style type="text/css">
    .main {
        float: left;
        margin-left: 8px;
    }</style>
<body>
<!--容器-->
<div class="container clearfix"></div>


<!--进度条-->
<div>

    <div class="DetailsRtTop clearfix" id="lc_img_left">
        <#if "${lcdto.finishStatus}" ==3 >
            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt="" class="fl">
        <#elseif "${lcdto.finishStatus}" ==2 >
            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt="" class="fl">
        <#elseif "${lcdto.finishStatus}" ==1 >
            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt="" class="fl">
        <#elseif "${lcdto.finishStatus}" ==0 >
            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt="" class="fl">
        </#if>
        <span class="ft18 bold fl ml10">隐蔽验收</span>
    </div>
    <div class="downModule whitebg">
        <ul class="mb30">
            <li class="clearfix">
                <div class="clearfix" id="div_fb_046">
                    <div class="downModuleTip clearfix fl">
                        <#if "${lcdto.stepNum}"?contains("13")>
                            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("12")>
                            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("11")>
                            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("10")>
                            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt=""
                                 class="fl">
                        </#if>
                        <span class="fl ml10 mt10 milefile" data-filetype="046">隐蔽验收记录（可选）</span>
                    </div>
                    <div class="downModuleBtn clearfix fr">
                        <@shiro.hasPermission name="file:finish">
                            <#if "${finish_status_046}"==true>
                                <button class="fl bluebg white fl ml20 btn_finish" lay-fs="12"   onclick="_prom_page.events.finish(this)">完成</button>
                            <#else>
                                <button class="fl bluebg white fl ml20 btn_finish layui-btn-disabled" lay-fs="12"  disabled="false"  onclick="_prom_page.events.finish(this)">完成</button>
                            </#if>
                        </@shiro.hasPermission>
                    </div>
                </div>
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"
                     style=" padding-left: 0px; padding-right: 0px;">
                    <ul class="layui-tab-title">
                        <#list listsqs_fb as vo>
                            <#if  "${u_index}"==0 >
                                <li class="layui-this" value="${vo.id}" lay-index="${vo_index}">分包编号：${vo.code}</li>
                            <#else>
                                <li value="${vo.id}" lay-index="${vo_index}">分包编号：${vo.code}</li>
                            </#if>
                        </#list>
                    </ul>
                    <div class="layui-tab-content" style="padding: 0px;">
                        <#list listsqs_fb as vo>
                            <div class="layui-tab-item">
                                <div class="clearfix" style="background: #F8F9FD">
                                    <div class="downModuleBtn clearfix fr" style="margin-right: 80px">
                                        <@shiro.hasPermission name ="file:uploadCj">
                                            <label>
                                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt=""
                                                     class="fl "
                                                     lay-data="{type: '046',value:'11',lx:'1'}">
                                                <button type="button" style="display: none;"
                                                        lay-data="{type: '046',value:'11',lx:'1'}"
                                                        bt-data="['c','d','g','cf3']"
                                                        class="img-upload whitebutton ft12 blue">点击上传
                                                </button>
                                            </label>
                                            <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt="" class="fl" onclick="_prom_page.events.clickDelete(this)">
                                        </@shiro.hasPermission>
                                        <@shiro.lacksPermission name="file:uploadCj">
                                            <label style="display: none">
                                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt=""
                                                     class="fl "
                                                     lay-data="{type: '046',value:'11',lx:'1'}">
                                                <button type="button" style="display: none;"
                                                        lay-data="{type: '046',value:'11',lx:'1'}"
                                                        bt-data="['c','d','g','cf3']"
                                                        class="img-upload whitebutton ft12 blue">点击上传
                                                </button>
                                            </label>
                                        </@shiro.lacksPermission>
                                    </div>
                                </div>
                                <ul id="jl_lxbox" class="clearfix" style="border: 1px solid #EEEEEE;">
                                </ul>
                            </div>
                        </#list>
                    </div>
                </div>
            </li>
            <li class="clearfix">
                <div class="clearfix" id="div_fb_047">
                    <div class="downModuleTip clearfix fl">
                        <#if "${lcdto.stepNum}"?contains("23")>
                            <img src="${re.contextPath}/plugin/common/images/14@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("22")>
                            <img src="${re.contextPath}/plugin/common/images/15@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("21")>
                            <img src="${re.contextPath}/plugin/common/images/16@2x.png" alt=""
                                 class="fl">
                        <#elseif  "${lcdto.stepNum}"?contains("20")>
                            <img src="${re.contextPath}/plugin/common/images/17@2x.png" alt=""
                                 class="fl">
                        </#if>
                        <span class="fl ml10 mt10 milefile" data-filetype="047">隐蔽验收照片</span>
                    </div>
                    <div class="downModuleBtn clearfix fr">
                        <@shiro.hasPermission name="file:finish">
                            <button class="fl bluebg white fl ml20 btn_finish" lay-fs="22" onclick="_prom_page.events.finish(this)">
                                完成
                            </button>
                        </@shiro.hasPermission>
                    </div>
                </div>
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"
                     style=" padding-left: 0px; padding-right: 0px;">
                    <ul class="layui-tab-title">
                        <#list listsqs_fb as vo>
                            <#if  "${u_index}"==0 >
                                <li class="layui-this" value="${vo.id}" lay-index="${vo_index}">分包编号：${vo.code}</li>
                            <#else>
                                <li value="${vo.id}" lay-index="${vo_index}">分包编号：${vo.code}</li>
                            </#if>
                        </#list>
                    </ul>
                    <div class="layui-tab-content" style="padding: 0px;">
                        <#list listsqs_fb as vo>
                            <div class="layui-tab-item">
                                <div class="clearfix" style="background: #F8F9FD">
                                    <div class="downModuleBtn clearfix fr" style="margin-right: 80px">
                                        <@shiro.hasPermission name ="file:uploadCj">
                                            <label>
                                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt=""
                                                     class="fl "
                                                     lay-data="{type: '047',value:'21',lx:'1',showType:'imagelist'}">
                                                <button type="button" style="display: none;"
                                                        lay-data="{type: '047',value:'21',lx:'1',showType:'imagelist'}"
                                                        class="whitebutton ft12 blue tab047${vo.id}">点击上传
                                                </button>
                                            </label>
                                        <#--   <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt="" class="fl"
                                                onclick="_prom_page.events.clickDelete(this)">-->
                                            <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt=""
                                                 class="fl pl_delete" lay-data="{type: 'imagelist'}"
                                                 onclick="_prom_page.events.delpicPt('table047${vo.id}')">
                                            <button class="fl ml20 mt15 bgnone imageAction047${vo.id}"
                                                    lay-data="{type: 'imagelist'}"
                                                    style="display: none;background-color: white!important;"
                                                    onclick="_prom_page.events.comfirmScImage(this)">确认上传
                                            </button>
                                        </@shiro.hasPermission>
                                        <@shiro.lacksPermission name="file:uploadCj">
                                            <label style="display: none">
                                                <img src="${re.contextPath}/plugin/common/images/18@2x.png" alt=""
                                                     class="fl "
                                                     lay-data="{type: '047',value:'21',lx:'1',showType:'imagelist'}">
                                                <button type="button" style="display: none;"
                                                        lay-data="{type: '047',value:'21',lx:'1',showType:'imagelist'}"
                                                        class="whitebutton ft12 blue tab047${vo.id}">点击上传
                                                </button>
                                            </label>
                                        <#--   <img src="${re.contextPath}/plugin/common/images/19@2x.png" alt="" class="fl"
                                                onclick="_prom_page.events.clickDelete(this)">-->
                                            <img style="display: none" src="${re.contextPath}/plugin/common/images/19@2x.png" alt=""
                                                 class="fl pl_delete" lay-data="{type: 'imagelist'}"
                                                 onclick="_prom_page.events.plDeleteImage(this)">
                                            <button class="fl ml20 mt15 bgnone imageAction047${vo.id}"
                                                    lay-data="{type: 'imagelist'}"
                                                    style="display: none;background-color: white!important;"
                                                    onclick="_prom_page.events.comfirmScImage(this)">确认上传
                                            </button>
                                        </@shiro.lacksPermission>
                                    </div>
                                </div>
                                <ul id="jl_lxbox" class="clearfix" style="border: 1px solid #EEEEEE;">

                                    <div style="position:relative; border: 1px solid #EEEEEE;height: 300px; overflow-y: scroll;display: none">
                                     <#--   <label class="fl" style="margin-top: 15px;"><span
                                                    class="red">*</span>请填写部位</label>-->
                                        <input type="text" style="margin-left: 12px;width: 400px;" name="positionName"  autocomplete="off"
                                               class="fl" value="">
                                        <div style="clear: both;"></div>
                                        <div class="layui-upload-list yldemo"></div>
                                        <div style="clear: both;"></div>
                                    </div>
                                    <div style="border: 1px solid rgb(238, 238, 238);">
                                        <table id="table047${vo.id}" style="height: 300px;" class="layui-hide"
                                               lay-filter="table047${vo.id}"></table>
                                    </div>

                                </ul>
                            </div>
                        </#list>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<script type="text/javascript" src="${re.contextPath}/plugin/system/supervisor/projectManager.js"></script>
<script type="text/javascript" src="${re.contextPath}/plugin/system/supervisor/guide.js"></script>
<script>
    $(function () {
        var jsondata = {
            "id": '${pdto.id}',
            "spmId": '${pdto.spmId}',
            "stageId": '${stagedto.id}'
        }
        _prom_page._init(2, jsondata);
        var haveGuide = '${haveGuide}';guide._initMileFileGuide($(".milefile"));
        if (haveGuide) {
            var badtNo = '${badtNo}';
            guide._initBtn(haveGuide, badtNo);
        }
        // layui-tab-title 自动触发点击事件
        for (var i = 0; i < 2; i++) {
            $('.layui-tab-title:eq(' + i + ') li:eq(0)').click();
        }
        _prom_page.events.butKzInit();
    });


</script>
</body>

</html>
